'use strict';

const Controller = require('egg').Controller;

class ClassifyController extends Controller {
    //获取分类
    async getClassify() {
        let {ctx,service} = this;
        let list = await service.classify.getClassify();

        ctx.body = {
            code:1,
            data:list
        }
    }
}

module.exports = ClassifyController;
